package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

public class Logs {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id; //主键id
    @TableField(value = "userid")
    private Integer userId;//用户id
    @TableField(value = "username")
    private String userName;//用户名

    private String operation;//用户操作

    private String method;//请求方法

    private String params;//请求参数
@TableField(value = "createTime")
    private Date createTime;//创建时间

    public Logs(Integer id, Integer userId, String userName, String operation, String method, String params, Date createTime) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.operation = operation;
        this.method = method;
        this.params = params;
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Logs() {
        super();
    }
}
